import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import createHistory from 'history/createBrowserHistory'

// https://github.com/ReactTraining/history
const history = createHistory()
const location = history.location
import '@/assets/less/about.less'

class About extends React.Component {

  componentWillMount() {
    console.log(this.props)
      // this.props.history.push('/')
  }
  render() {
    return (
      <div className="about">
        <h4>关于 react-demo-kit</h4>
        <a onClick={history.goBack}>返回</a>
      </div>
    );
  }
}

export default connect()(About);